package com.hujing.springsource.a10.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Aspect
public class MyAspect {

    private Logger log = LoggerFactory.getLogger(MyAspect.class);

    @Before("execution(* com.example.springsource.com.hujing.a10.service.MyService.foo())")
    public void before(){
        log.info("before");
    }

}
